package com.hm.controller;

import com.hm.pojo.HmCoupon;
import com.hm.serivce.HmCouponService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(value = "优惠卷接口",tags = "优惠卷接口")
public class HmCouponController {

    @Autowired
    private HmCouponService hmCouponService;

    @RequestMapping(value = "/ShowCouponList",method = RequestMethod.GET)
    @ApiOperation(value = "优惠卷列表接口")
    public List<HmCoupon> ShowCouponList(){
        List<HmCoupon> list = hmCouponService.ShowCouponList();
        return list;
    }
}
